package com.cjw.pojo.entity.livesquare;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @create_time: 2021.11.15
 * @author : cjw
 * @descripe: 生活分享存储实体
 */
@Data
@Table(name = "live_sharing")
@ApiModel("生活分享存储实体")
public class LiveSharing {
    @Id
    @ApiModelProperty("id")
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("添加时间")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("点赞数")
    private Long loveNum;

    @ApiModelProperty("收藏数")
    private Long collectionNum;

    @ApiModelProperty("第一张图片url")
    private String topImage;

    @ApiModelProperty("权限")
    private Integer power;
}
